﻿//////////////////////////////////////////////////////////////////////////////
//
//  Copyright © 1998-2024 Glodon Company Limited.  All rights reserved.
//
//  Use of this software is subject to the terms of the Glodon license
//  agreement provided at the time of installation or download, or which
//  otherwise accompanies this software in either electronic or hard copy form.  
//
//////////////////////////////////////////////////////////////////////////////

#pragma once

#include "GcmpApiFoundation.h"
#include "ApiObject.h"
namespace gdmp {
    namespace api {

        /// Summary:
        ///     基础对象。
        class BaseObject : public gdmp::api::Object
        {
            DEFINE_CAST_DERIVED(gdmp::api::BaseObject, gdmp::api::Object)
        public:
            // interfaces

            /// Summary:
            ///     判断是否为有效对象。
            /// Returns:
            ///     true表示有效，否则为false。
            GCMP_API_FOUNDATION_EXPORT virtual bool IsValidObject()const { return true; }
        };
    }
}
